import java.util.Arrays;

public class Test {
    public static void main(String[] args) {//遍历数组的三种方法
        int[] array = {1,2,3,4,5,6};
         for (int i = 0;i < array.length;i++){
             System.out.println(array[i]);
         }
        System.out.println("=============");
         for (int x : array){
             System.out.println(x);
         }
        System.out.println("=============");
         String ret = Arrays.toString(array);
        System.out.println(ret);
    }
}
